<?php
echo "Lien ETAT demande = " . $lienDemande->id ."<br />";

echo "demandeOrigine_id = " . $lienDemande->demandeOrigine_id ."<br />";

echo "demandeOrigine->id = " . $lienDemande->demandeOrigine->getClassname() ."<br />";

echo '$lienDemande->demandeOrigine->getNextId='. $lienDemande->demandeOrigine->getNextId();
echo  "get_class = " .  get_class($lienDemande->demandeOrigine);